<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
  <title>CSS Test Reference</title>
  <style type="text/css">* { margin: 0; padding: 0 }
   body &gt; span { border: 3px solid blue }
   body &gt; span &gt; span { border: 3px solid cyan }
   .notstart { border-left: none; }
   .notend { border-right: none; }
  </style>
 </head>
 <body>
  <span class="notend">
    <span class="notend">
      <span>One</span><span>Two</span><span>Three</span>
    </span>
  </span>
  <div>Four</div>
  <span class="notstart notend"><span class="notstart notend"></span></span>
  <div>Five</div>
  <span class="notstart notend">
    <span class="notstart notend">
      <span>Six</span>
    </span>
  </span>
  <div>Seven</div>
  <span class="notstart notend"><span class="notstart notend"></span></span>
  <div>Eight</div>
  <span class="notstart notend">
    <span class="notstart">
      <span>Nine</span>
    </span>
  </span>
  <div>Ten</div>
  <span class="notstart"></span>
 

</body></html>